﻿@model IEnumerable<PessModel.sp_GetArchiveExpertScores_Result>

@{
    Layout = null;
}


@if(Model!=null)
{

<table>
    <tr>

        <th>
            评分规则
        </th>
        <th>
            规则说明
        </th>
        <th>
            权重值
        </th>

        <th>
            得分
        </th>
        <th>
            评委编号
        </th>

    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Value)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.ScoreValue)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExpertJudgeSerialNumber)
        </td>
    </tr>
}
    <tr>

        <td>
            合计
        </td>
        <td>
            
        </td>
        <td>
            
        </td>

        <td>
            @{
    decimal? totalScore=0;
    for (int i = 0; i < Model.Count();i++ )
    {
        totalScore += Model.ElementAt(i).ScoreValue;
    }
                
                }@totalScore
        </td>
        <td>
            
        </td>

    </tr>
</table>
}
